﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Xejen.Communication.Ftp.Abstract
{
    /// <inheritdoc cref="IProgressData"/>
    public class ProgressData : IProgressData
    {
        /// <summary>
        /// 已下载字节数
        /// </summary>
        public long BytesRead { get; set; }
        /// <summary>
        /// 总字节数
        /// </summary>
        public long TotalBytes { get; set; }

        /// <summary>
        /// 消息描述
        /// </summary>
        public string Message { get; set; }

        /// <inheritdoc cref="ProgressData"/>
        public ProgressData() { }

        /// <inheritdoc cref="ProgressData"/>
        /// <param name="bytesRead"><inheritdoc cref="BytesRead" path="/summary"/></param>
        /// <param name="totalBytes"><inheritdoc cref="TotalBytes" path="/summary"/></param>
        /// <param name="message"><inheritdoc cref="Message" path="/summary"/></param>
        public ProgressData(long bytesRead, long totalBytes, string message = null)
        {
            BytesRead = bytesRead;
            TotalBytes = totalBytes;
            Message = message;
        }
    }
}
